<?php
/**
 * 数据字典
 */
namespace app\mobile\controller;

use dragon\Order\Order;
use dragon\Order\OrderContainer;
use dragon\Order\OrderContainerInterchangeLog;
use dragon\Support\Dictionary;
use dragon\SysConfig;
use think\Db;

class DictionaryController extends BaseController
{
    /**
     * @return array
     */
    public function index()
    {
        return $this->success([]);
    }

    /**
     * 箱信息查询
     */
    public function query() {
        $list = Dictionary::get($this->request->param('dict_type', '', 'trim'));
        $result = [];
        foreach ($list as $key => $val) {
            $result[] = [
                'key' => $key,
                'val' => $val,
            ];
        }
        return $this->success($result);
    }
}
